import request from '@/utils/request'
/**
 * 样品信息
 **/
export function GetListDetectionByEntrustOrderId(data) {
  return request({
    url: '/api/v1/SampleInfo/GetListDetectionByEntrustOrderId',
    method: 'post',
    data: data
  })
}
export function getList(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: '/api/v1/SampleInfo/GetList',
    method: 'post',
    data: data
  })
}
// 修改样品信息指定列
export function updateAssignColumn(data) {
  return request({
    url: '/api/v1/SysBusinessSampleInfo/updateAssignColumn',
    method: 'post',
    data
  })
}

// 修改样品信息
export function UpdateSampleInfo(data) {
  return request({
    url: '/api/v1/SampleInfo/UpdateSampleInfo',
    method: 'patch',
    data
  })
}
